<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="moduleList" />
<script type="text/javascript"
	src="${staticPath}/lib/jquery/1.10.2/jquery.js"></script>
<script type="text/javascript">
	
</script>
</head>
<body>
	<form:form name="listForm" modelAttribute="prom" method="post"
		class="form-inline" role="form">
		<ol class="breadcrumb map_1">
			<li><a href="${contextPath}/index">首页</a></li>
			<li><a
				href="${contextPath}/biz/example/form/elements?navId=${navId}">结算对账</a></li>
			<li class="active">促销单/调价单</li>
		</ol>
		<div class="o-l-search-builder f_1">
			<div class="f_8">
				<div class="f_2">
					<div class="col-sm-8 f_6">
						<form:input id="promNo" path="promNo" class="f_5"
							placeholder="促销单号" />
					</div>
					<button type="submit" class="btn btn-warning btn_1">查&nbsp;询</button>
				</div>
			</div>
		</div>
		<tags:message content="${message}" />
		<div class="o-l-search-builder f_9">
			<table
				class="table table-striped table-hover o-l-table table-bordered"
				id="table1">
				<thead class="t_1">
					<tr>
						<th style="width: 1px"><input type="checkbox" data-ckb="all"></th>
						<th>促销单号</th>
						<th>商品编号</th>
						<th>商品条码</th>
						<th>商品名称</th>
						<th>原售价</th>
						<th>促销价</th>
						<th>满足数量</th>
						<th>满足金额</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${list}" var="prom">
						<tr data-herf=##
							"${contextPath}/statement/statementStock/${stock.id}/getByStockId"
							data-target="_self">
							<td class="o-l-tab-ckb"><input type="checkbox"
								data-ckb-id="${prom.id}"></td>
							<td>${prom.promNo}</td>
							<td>${prom.barCode}</td>
							<td>${prom.goodsId}</td>
							<td>${prom.goodsName}</td>
							<td><fmt:formatNumber value="${prom.salePrice}"
									pattern="##.##" minFractionDigits="2"></fmt:formatNumber></td>

							<td><fmt:formatNumber value="${prom.promPrice}"
									pattern="##.##" minFractionDigits="2"></fmt:formatNumber></td>

							<td><fmt:formatNumber value="${prom.buyNum}" pattern="##"
									minFractionDigits="0"></fmt:formatNumber></td>

							<td><fmt:formatNumber value="${prom.buyAmount}"
									pattern="##.##" minFractionDigits="2"></fmt:formatNumber></td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
		<div class="panel-footer">
			<!--等待宏天分页功能完善-->
			<ul class="pagination o-list-pagination">
				<li class="disabled"><a href="javascript:">&#171; 上一页</a></li>
				<li class="disabled"><a href="#">1</a></li>
				<li class="disabled"><a href="#">下一页 &#187;</a></li>
				<li class="disabled info">&nbsp;<a href="javascript:">当前 <input
						type="text" value="1"
						onkeypress="var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(this.value,10);"
						onclick="this.select();" /> / <input type="text" value="10"
						onkeypress="var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(1,this.value);"
						onclick="this.select();" /> 条，共 10 条
				</a>
				<li>
			</ul>
		</div>
	</form:form>
</body>
</html>